import pygame

from actor.welcome_sprite import WelcomeSprite, WelcomeSpriteFail
from scene import BaseScene, ScenePassStatus
from scene.win_scene import WinScene

"""
失败场景类
"""
class FailScene(WinScene):
    def __init__(self, xiao_tie):
        """
        参数初始化
        :param xiao_tie:
        """
        super(WinScene, self).__init__(xiao_tie,
                                       "./resources/images/fail/fail.jpg")
        self.actor = WelcomeSpriteFail(50, 300)
        pygame.mixer.music.load("resources/sound/游戏失败.mp3")
        pygame.mixer.music.play(-1)
